import React from 'react'
import { Modal, Form, Input } from 'antd';

const FormItem = Form.Item

export default class Modify extends React.Component {
    state = {
        visible: false,
    }
    showModal = () => {
        this.setState({
            visible: true
        })
    }
    onCancel = ()=>{
        this.setState({
            visible: false
        })
    }
    render() {
        const { data } = this.props
        return (<div>
            <Modal
                title="修改"
                visible={this.state.visible}
                onCancel={this.onCancel}
            >
                <Form>
                    <FormItem label="积分" >
                        <Input defaultValue={data.bonus} />
                    </FormItem>
                </Form>
            </Modal>
        </div>)
    }
}